<template>
  <h1>El-下拉选框组件</h1>
  <el-select v-model="city" style="width: 50%;" placeholder="请选择城市">
    <el-option label="北京" value="bj"></el-option>
    <el-option label="上海" value="sh"></el-option>
    <el-option label="广东" value="gd"></el-option>
    <el-option label="深圳" value="sz"></el-option>
  </el-select>
  <h4>提交的值：{{city}}</h4>
</template>

<script setup>
import {ref} from "vue";
const city = ref('');
</script>

<style scoped>

</style>